﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sfsocket.corelib.message
{
    public enum Priority
    {
        Low,
        BelowMedium,
        Medium,
        AboveMedium,
        High,
        Critical
    }

    public enum SendType
    {
        Message,
        Action,
        Notice,
        CtcpReply,
        CtcpRequest
    }

    public enum MessageTypeEnum : int
    {
        BASIC       = 0x00,          
        FILEDATE    = 0x01,
        LOGIN       = 0x02, 
        PING        = 0x03,
        PONG        = 0x04,
        PRI_MSG     = 0x05,
        BROADCAST   = 0x06,
        JOIN        = 0x07,
        QUIT,
        INVITE,
        KICK,
        VOICE,
        ERROR,
        UNKNOWN
    }

    public class enumTest
    {
        public static void TestEnumToString()
        {
            string msg = Enum.GetName(typeof(MessageTypeEnum), MessageTypeEnum.BASIC);
            Console.WriteLine(msg);

            string msg2 = MessageTypeEnum.BROADCAST.ToString();
            Console.WriteLine(msg2);

        }
    }

}
